package grape.attend.rest.overtime.mapper;

import grape.attend.rest.overtime.form.OvertimeRestListForm;
import grape.attend.service.overtime.po.OvertimeRest;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.overtime.form.OvertimeRestCreateForm;
import grape.attend.rest.overtime.form.OvertimeRestUpdateForm;
import grape.attend.rest.overtime.form.OvertimeRestListPageForm;
import grape.attend.rest.overtime.vo.OvertimeRestVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 加班休息日设置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-09
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OvertimeRestWebMapper extends WebMapper<OvertimeRestVo, OvertimeRest> {

    OvertimeRest formToPo(OvertimeRestCreateForm f);
    OvertimeRest formToPo(OvertimeRestUpdateForm f);
    OvertimeRest formToPo(OvertimeRestListPageForm f);
    OvertimeRest formToPo(OvertimeRestListForm f);
}
